package com.example.result;

import com.example.domain.User;
import lombok.Data;

@Data
public class UserResult {
    private Long uid;  //用户id
    private String username;  //用户名
    private String phone;  //电话号码
    private String email;  //电子邮箱
    private Integer gender;  //性别:0-女，1-男
    private String avatar;  //头像

    public UserResult(){}
    public UserResult(User user){
        this.uid=user.getUid();
        this.username=user.getUsername();
        this.phone=user.getPhone();
        this.email=user.getEmail();
        this.gender=user.getGender();
        this.avatar=user.getAvatar();
    }
}
